//
//  main.m
//  OC多文件开发
//
//  Created by wenjim on 17/9/12.
//  Copyright © 2017年 WenJim. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Soldier.h"
#import "Shop.h"

int main(int argc, const char * argv[]) {
    
    // 1.创建士兵
    Soldier * soldier = [Soldier new];
    
    soldier -> _name = @"WenJim";
    soldier -> _height = 1.71;
    soldier -> _weight = 74;
    
    // 2.购买枪
    Gun * gun = [Shop buyGun:888];
    
    // 3.购买弹夹
    Clip * clip = [Shop buyClip:80];
    
    // 4.让士兵开枪
    [soldier Fire:gun clip:clip];
    
    return 0;
}
